package com.dao;

import com.entity.Staff;
import com.util.DbUtil;
import com.util.SqlRunner;

import java.util.List;

/**
 * @author Cc
 * 2024-04-25
 */
public class StaffDao {
    final SqlRunner sqlRunner = new SqlRunner(DbUtil.getConnection());

    public List<Staff> selectAllStaff() {
        String sql = "select * from staffs;";

        return sqlRunner.query(Staff.class, sql);
    }
}
